Optimal. Leaf size=13 \[ \frac {x}{a}-\frac {\sin (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2761, 8}
\begin {gather*} \frac {x}{a}-\frac {\sin (x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2761
Rubi steps
\begin {align*} \int \frac {\sin ^2(x)}{a+a \cos (x)} \, dx &=-\frac {\sin (x)}{a}+\frac {\int 1 \, dx}{a}\\ &=\frac {x}{a}-\frac {\sin (x)}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 17, normalized size = 1.31 \begin {gather*} \frac {2 \left (\frac {x}{2}-\frac {\sin (x)}{2}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(29\) vs.
\(2(13)=26\).
time = 0.06, size = 30, normalized size = 2.31
method | result | size |
risch | \(\frac {x}{a}-\frac {\sin \left (x \right )}{a}\) | \(14\) |
default | \(\frac {-\frac {2 \tan \left (\frac {x}{2}\right )}{\tan ^{2}\left (\frac {x}{2}\right )+1}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )}{a}\) | \(30\) |
norman | \(\frac {\frac {x}{a}+\frac {x \left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{a}-\frac {2 \tan \left (\frac {x}{2}\right )}{a}-\frac {2 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{a}+\frac {2 x \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{a}}{\left (\tan ^{2}\left (\frac {x}{2}\right )+1\right )^{2}}\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 42 vs.
\(2 (13) = 26\).
time = 0.51, size = 42, normalized size = 3.23 \begin {gather*} \frac {2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right )}{a} - \frac {2 \, \sin \left (x\right )}{{\left (a + \frac {a \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (x\right ) + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 10, normalized size = 0.77 \begin {gather*} \frac {x - \sin \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 46 vs.
\(2 (7) = 14\).
time = 0.19, size = 46, normalized size = 3.54 \begin {gather*} \frac {x \tan ^{2}{\left (\frac {x}{2} \right )}}{a \tan ^{2}{\left (\frac {x}{2} \right )} + a} + \frac {x}{a \tan ^{2}{\left (\frac {x}{2} \right )} + a} - \frac {2 \tan {\left (\frac {x}{2} \right )}}{a \tan ^{2}{\left (\frac {x}{2} \right )} + a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 25, normalized size = 1.92 \begin {gather*} \frac {x}{a} - \frac {2 \, \tan \left (\frac {1}{2} \, x\right )}{{\left (\tan \left (\frac {1}{2} \, x\right )^{2} + 1\right )} a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.29, size = 10, normalized size = 0.77 \begin {gather*} \frac {x-\sin \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________